package org.huifei.a11_observer;

/**
 * @author: huifei
 * @date: 2017-09-01 10:13
 * 观察者模式
 */
public class Test {
    public static void main(String[] args) {
        Subject subject = new MySubject();
        subject.add(new Observer1());
        subject.add(new Observer2());
        subject.operation();
    }
}
